﻿@{
    ViewBag.Title = "RandNumFunc";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Rand Number Function</h2>

From: <input type ="text" id="txtFrom" class="inputbox" />
<br />
To: <input type ="text" id="txtTo" class="inputbox" />
<br />
<input type="button" id="btnGenRand" value="generate" />

<script type="text/javascript">
   
    $(document).ready(function () {
        $('#btnGenRand').click(function () {
            var from = parseInt($('#txtFrom').val());
            var to = parseInt($('#txtTo').val());

            ZEUS.DEBUG.log("rand number from {" + from + "} to {" + to + "}");
            ZEUS.DEBUG.log(ZEUS.MATH.rndNumFromRange(from, to));
        });
    });

</script>
